#pragma once

#include "../umlmodel_global.h"

#include <memory>
#include <vector>

#include "ObjectNode.h"

using std::make_shared;
using std::shared_ptr;
using std::vector;

namespace uml {
class Parameter;

/// <summary>
/// ActivityParameterNode
/// An ActivityParameterNode is an ObjectNode for accepting values from the input
/// Parameters or providing values to the output Parameters of an Activity.
/// </summary>
class UMLMODEL_EXPORT ActivityParameterNode : public ObjectNode {

public: // Constructors and destructors
    explicit ActivityParameterNode(const QString& umlType="uml::ActivityParameterNode");

public: // JsonSerializable override
    void fromJson(const QJsonObject& json, QStringList& errorList) override;
    void toJson(QJsonObject& json) override;

public: // Properties
    /// <summary>
    /// parameter getter
    /// The Parameter for which the ActivityParameterNode will be accepting or providing
    /// values.
    /// </summary>
    shared_ptr<Parameter> parameter() const;

    /// <summary>
    /// parameter setter
    /// The Parameter for which the ActivityParameterNode will be accepting or providing
    /// values.
    /// </summary>
    void setParameter(shared_ptr<Parameter> value);

private: // Fields
    /// <summary>
    /// parameter
    /// The Parameter for which the ActivityParameterNode will be accepting or providing
    /// values.
    /// </summary>
    shared_ptr<Parameter> parameter_;

};

} // namespace uml
